package org.kd.controller;
/**
 * 代号:隐无为 2017：厚溥
 * 文件名：EmpController.java
 * 创建人：柯栋
 * 日期：2017年9月21日
 * 修改人：
 * 描述：
 */


import java.util.List;

import org.kd.common.base.controller.BaseController;
import org.kd.model.Emp;
import org.kd.service.EmpService;
import org.kd.utils.JsonReturnData;
import org.kd.utils.WebConstant;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 用途：业务模块名称
 */
@Controller
@RequestMapping("/empController")
public class EmpController extends BaseController {
	Logger logger = LoggerFactory.getLogger(getClass());
	@Autowired
	EmpService empService;

	

	@RequestMapping("/queryAllList")
	@ResponseBody
	public String queryAllList(Emp emp) {
		JsonReturnData<List<Emp>> jsonReturnData = new JsonReturnData<List<Emp>>();
		List<Emp> queryAllList = empService.queryAllList();
		jsonReturnData.setCode(WebConstant.SUCCESSCODE);
		jsonReturnData.setMsg("删除成功");
		jsonReturnData.setData(queryAllList);

		return responseAPI.getJsonString(jsonReturnData);
	}





}
